package com.zoo.controller;

import com.zoo.service.KafkaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by yongli on 2020-05-04 11:46
 */

@RestController
@RequestMapping("/redis")
public class KafkaController {
    @Autowired
    KafkaService kafkaService;

    @GetMapping("/get")
    public Object get(@RequestParam("msg") String msg) {
        return "rest";
    }

    @GetMapping("/add")
    public Object set(@RequestParam("msg") String msg) {
        return "dd";
    }
}
